<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script setup lang="ts">
import { onMounted } from 'vue'
import { initTheme } from './utils/theme'

// 初始化主题
onMounted(() => {
  initTheme()
})
</script>

<style>
@import './assets/styles/global.css';

#app {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-primary);
  background-color: var(--background);
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--background);
  color: var(--text-primary);
}

/* 全局样式 */
.page-container {
  min-height: 100vh;
  padding: 20px;
  background-color: var(--background);
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}
</style> 